import BaseApi from '../BaseApi';

const controller = "/marketing";

export default {

    getRuleList(condition) {
        return this.requestPost(controller, "/getRuleList", condition);
    },
    addOrUpdateActivitiesRule(condition) {
        return this.requestPost(controller, "/addOrUpdateActivitiesRule", condition);
    },
    deleteActivitiesRule(condition) {
        return this.requestPost(controller, "/deleteActivitiesRule", condition);
    },
    /*请求封装*/
    requestPost(controller, url, condition) {
        let newUrl = controller + url;
        return BaseApi.requestPost(newUrl, condition);

    },
    requestGet(controller, url, condition) {
        let newUrl = controller + url;
        return BaseApi.requestGet(newUrl, condition);
    },


}
